import request from '@/utils/request'

// 查询用户设备绑定列表
export function listCustomerDeviceBind(query) {
  return request({
    url: '/system/customerDeviceBind/list2',
    method: 'get',
    params: query
  })
}

// 查询用户设备绑定详细
export function getCustomerDeviceBind(id) {
  return request({
    url: '/system/customerDeviceBind/' + id,
    method: 'get'
  })
}

// 新增用户设备绑定
export function addCustomerDeviceBind(data) {
  return request({
    url: '/system/customerDeviceBind',
    method: 'post',
    data: data
  })
}

// 修改用户设备绑定
export function updateCustomerDeviceBind(data) {
  return request({
    url: '/system/customerDeviceBind',
    method: 'put',
    data: data
  })
}

// 删除用户设备绑定
export function delCustomerDeviceBind(id) {
  return request({
    url: '/system/customerDeviceBind/' + id,
    method: 'delete'
  })
}
